let minSubArrayLen = function(target, nums){
    let len = nums.length
    let count = 0
    let minCount = 0
    let left = 0, right = 0
    let sum = 0
    while(right < len){
        sum += nums[right]
        count += 1
        while(sum >= target){
            minCount = minCount === 0 ? count : Math.min(count, minCount)
            sum -= nums[left]
            left ++ 
        }
    }

}